(dabbrev-expand): Delete a search-forward call
authorRichard M. Stallman <rms@gnu.org>
Sun, 9 May 1993 23:18:30 +0000 (23:18 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 9 May 1993 23:18:30 +0000 (23:18 +0000)
after the second replace-match.

lisp/dabbrev.el

index 0798b764c2bee8bf8bf91241f88a5ff1f3ee4284..db5fcacd0777606e7b10955981bcf69be083b741 100644 (file)
@@ -186,7 +186,9 @@ with the next possible expansion not yet tried."
        ;; case pattern.
        (save-excursion
          (replace-match abbrev t 'literal))
-       (search-forward abbrev)
+;;; This used to be necessary, but no longer, 
+;;; because now point is preserved correctly above.
+;;;    (search-forward abbrev)
        (replace-match (if do-case (downcase expansion) expansion)
                       (not do-case)
                       'literal))